#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
#include <stdint.h>
#include <unistd.h>
#include <sys/siginfo.h>
#include <sys/neutrino.h>
#include <sys/dispatch.h>
#include "../Komunikacja/Message.h"
#include "../Komunikacja/Connector.h"
#include "../Komunikacja/Log.h"
#include "../Komunikacja/Response.h"
#include <sched.h>

//to print a result
void print(Response * resp) {
	printf("resp->status: %d\nresp->response: %d\n", resp->status, resp->response);
}

int main(int argc, char *argv[]) {
	Connector * conn = Connector::GetInstance();
	Response * resp = new Response();

	//to create relation in DB use:
	conn->setRelation(Message::VILLA, Message::PEOPLE, 3, resp); print(resp);
	
	printf("END\n");
	return 0;
}
